/**
 * 
 */
package xx.services.teach;

import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.core.Context;

import xx.services.Passport;
import xx.services.util.Constants;

/**
 * @author Administrator 2014-3-17
 */
@Path(Constants.RESTFUL_ROOT_PATH + "/testteach")
public class TestTeach extends Passport
{
    public TestTeach(@Context
    HttpServletRequest request)
    {
        super(request);
        // TODO Auto-generated constructor stub
    }

    @GET
    public String getDataSource()
    {
        try
        {
            System.out.println("test");
            return ok(1);
        }
        catch (Exception e)
        {
            e.printStackTrace();
            return error(e);
        }
    }
}
